﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _网易云
{
    public interface IMusicProvider
    {
        string FileType { get; }
        Task<string> GetUrlById(string songId);
        Task<List<PlayListInfoViewModel>> GetPlayListInfos(int offset);
        Task<PlayListViewModel> GetPlayList(string playListId);
        Task<PlayListViewModel> GetArtist(string artistId);
        Task<PlayListViewModel> GetAlbum(string albumId);
        Task<List<SongViewModel>> SearchTrack(string keyword);
        Task<string> GetLyric(string trackId, string lyricUrl = null);
    }
    public class PlayListViewModel
    {
        public List<SongViewModel> Tracks { get; set; }
        public PlayListInfoViewModel Info { get; set; }
    }
    public class PlayListInfoViewModel
    {
        public string Id { get; set; }
        public string CoverImgUrl { get; set; }
        public string Title { get; set; }
        public int PlayCount { get; set; }
        public string ListId { get; set; }
    }
}
